//
//  AppDelegate.m
//  CBDWallpapar
//
//  Created by AD ` J on 2019/7/6.
//  Copyright © 2019年 CBD工作室. All rights reserved.
//

#import "AppDelegate.h"
#import "CBDHomeController.h"
#import "BaseNavigationController.h"

#import "CBDLaunchView.h"
#import <SVProgressHUD.h>

@interface AppDelegate ()


@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    CBDHomeController *homeCtr = [CBDHomeController classInitializtion];
    BaseNavigationController *rootCtr = [[BaseNavigationController alloc] initWithRootViewController:homeCtr];
    self.window.rootViewController = rootCtr;
    [self.window makeKeyAndVisible];
    
    [CBDLaunchView show];

    
    [[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
    [SVProgressHUD setMaximumDismissTimeInterval:0.5];
    
   
    
    return YES;
}




- (UIViewController *)adSplashViewControllerForPresentingModalView {
    return self.window.rootViewController;
}



- (void)applicationWillEnterForeground:(UIApplication *)application {
    
}

- (void)applicationWillTerminate:(UIApplication *)application {
    
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    
}

@end
